import com.service.MultiplyTxService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TxTest03 {
    @Test
    public void test1(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("tx_ioc.xml");
        MultiplyTxService bean = context.getBean(MultiplyTxService.class);
        System.out.println("购买商品");
        bean.multiTxTest();

    }
}
